import request from "@/api/request.js";


export function queryMusicianPages(status, type, area, page, size) {
    const params = {
        status,
        type,
        area,
        page,
        size,
    }
    return request({
        url: '/admin/approval/musician/page',
        method: 'get',
        params: params
    })
}
export function queryAlbumPages(status, styleId, startDate, endDate, page, size) {
    const params = {
        status,
        styleId,
        startDate,
        endDate,
        page,
        size,
    }
    return request({
        url: `/admin/approval/album/page`,
        method: 'get',
        params: params
    })
}
export function doMusicianApproval(id, toStatus, des) {
    const data = {
        id: id,
        toStatus: toStatus,
        des: des
    }
    return request({
        url: `/admin/approval/musician/do`,
        method: 'put',
        data: data
    })
}
export function doMusicApproval(id, toStatus, des) {
    const data = {
        id: id,
        toStatus: toStatus,
        des: des
    }
    return request({
        url: `/admin/approval/music/do`,
        method: 'put',
        data: data
    })
}


export function doAlbumApproval(id, toStatus, des) {
    const data = {
        id: id,
        toStatus: toStatus,
        des: des
    }
    return request({
        url: `/admin/approval/album/do`,
        method: 'put',
        data: data
    })
}

